import Vue from "vue";
import Vuex from "vuex"
import moduleApp from "@/store/app.js"
import modulePosts from "@/store/posts.js"
import moduleTabbar from "@/store/tabbar.js"

Vue.use(Vuex)

const store = new Vuex.Store({
  // 挂载 module 模块
  modules: {
    "m_app": moduleApp,
    "m_posts": modulePosts,
    "m_tabbar": moduleTabbar
  }
})

// 共享 Store 实例对象
export default store